Skip to content

test: widen process exit wait timeout to survive loaded ci#112

Merged
jbj338033 merged 2 commits into
mainfrom
fix/flaky-process-exit-timeout
Jul 7, 2026
Merged

test: widen process exit wait timeout to survive loaded ci#112
jbj338033 merged 2 commits into
mainfrom
fix/flaky-process-exit-timeout

Conversation

@jbj338033

Copy link
Copy Markdown
Collaborator

Summary

kill_terminates_running_process failed on ubuntu CI with "process did not exit in time". The kill path is reliable, but under a loaded CI runner the async chain (group kill -> child.wait() wakes -> mark_exited -> list reflects Exited) can take longer than the 2s test timeout, making it flaky rather than a real bug. Widen wait_until_exited from 2s to 10s. A genuine kill failure still fails within 10s, so bug-detection is preserved.

Reproduced the environment in a Linux (rust:1.95) container under CPU-saturated load; the widened timeout passes 15/15.

Verification

  • cargo test -p goat-agent --lib process:: — passed (10 tests), incl. under --cpus=2 + busy-loop load in a Linux container (15/15)
  • cargo clippy -p goat-agent --all-targets -- -D warnings — passed
  • cargo fmt --all --check — passed

@jbj338033 jbj338033 merged commit 20ad434 into main Jul 7, 2026
5 checks passed
@jbj338033 jbj338033 deleted the fix/flaky-process-exit-timeout branch July 7, 2026 23:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant